package com.government.web.controller.system;

import com.government.common.core.controller.BaseController;
import com.government.common.core.domain.AjaxResult;
import com.government.system.service.WebRoleAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



/**
 * 身份权限
 * 
 * @author system
 * @date 2023-09-07
 */
@RestController
@RequestMapping("/web/auth")
public class WebAuthController extends BaseController
{
    @Autowired
    private WebRoleAuthService webRoleAuthService;

    /**
     * 获取权限
     */
    @GetMapping(value = "/getAuth")
    public AjaxResult getAuth()
    {
        return success(webRoleAuthService.getAuthContent());
    }
}
